import requests
import os
file = os.path.expanduser("~/Desktop/image.jpg")
req = requests.get("http://n.sinaimg.cn/news/crawl/117/w550h367/20220417/a3a9-08b2ca6dffe4210149dda424adf0734f.jpg")
with open(file,"wb") as f:
    f.write(req.content)
print("保存成功")
